package edu.sctu.liangyuxiang.day20150518;

/**
 * Created by user20 on 2015/5/19.
 */
public class TextOne extends TextMore{


    public void getTercherInfo(){
        sotrNumber(teacher);
        System.out.println(teacher[0].number + teacher[1].number);
    }

    public Student[] getStudent(int code , Student[] student){
        sortStudent(student);
        Student[] student2 = new Student[student.length];
        for (int i = 0; i < student.length ; i++) {
            if(student[i].score > code){
                student2[i] = student[i];
            }
        }
        return student2;
    }

    public Student[] getCode(){
        Teacher teacher = pritCoded();
       Interface student = new Interface() {
            @Override
            public Student[] aninterface(Student[] student) {
               Student[] student3 = getStudent(60,teacher.student);
                return student3;
            }
        };
        Student[] student4 = new Student[teacher.student.length];
        student4 = student.aninterface(teacher.student);
        return student4;
    }
}
